// Copyright 2021 Guoyoko. All Rights Reserved.

#pragma once

#include "CoreMinimal.h"
#include "Widgets/SCompoundWidget.h"

class SSWDetailPanelContainer : public SCompoundWidget
{
public:
	SLATE_BEGIN_ARGS(SSWDetailPanelContainer)
	{}
	SLATE_END_ARGS()

public:

	void Construct(const FArguments& InArgs);

	/*-> Initialize All Drop Actor`s Detail Widget*/
	void Initialize();

	void CallBack_ActorSelected(class AActor* InActor);

	void SetPropertyPanel(TSharedRef<class SWidget> InPanel);

private:

	TArray<TSharedPtr<class FSWBaseProperty>> AllPropertyPanels;
	TWeakPtr<class FSWBaseProperty> CurrentPropertyPanel;

	TSharedPtr<class SBorder> PropertyContentSlot;
};

